package com.turing.post.report.util;

import java.math.BigInteger;
import java.util.Date;

import javax.ejb.Local;
import javax.ejb.Remote;

import com.turing.post.util.PCPSApplicationException;

/**
 * 发卡商分支机构卡种类面值库存日结表Dao接口
 * 
 * @author yxb
 * 
 */
@Remote
@Local
public interface IssueCardStockDaySettlementDao {

	/**
	 * 插入对象
	 * 
	 * @param icsds
	 */
	public void insert(IssueCardStockDaySettlement icsds)
			throws PCPSApplicationException;

	/**
	 * 根据主键查找
	 * 
	 * @param icsds
	 * @return
	 */
	public IssueCardStockDaySettlement getIssueCardStockDaySettlementByKey(
			IssueCardStockDaySettlement icsds);

	/**
	 * 删除某发卡商某日所有分支机构所有的卡库存日结数据
	 * 
	 * @param issueCompanyNo
	 *            发卡商号
	 * @param tranDate
	 *            帐务日期
	 */
	public void removeAllIssueCardStockDaySettlementByTranDate(
			String issueCompanyNo, Date tranDate);

	/**
	 * 根据发卡商分支机构号、日期、卡面ID检索小于该日期的最大日期
	 * 
	 * @param issueBranchNo
	 *            销售分支机构号
	 * @param tranDate
	 *            帐务日期
	 * @param cardFaceId
	 *            卡面ID
	 * 
	 * @return
	 */
	public Date getMaxTranDate(String issueBranchNo, Date tranDate,
			BigInteger cardFaceId);
}
